protected $rule = [
<br>
{foreach $info as $key=>$v}
<span> &nbsp; &nbsp;</span>'{$key}|{php} echo  get_db_column_comment($table,$key){/php}' =>'require
            {php}
              $type =   explode('(',$v);
              if($type[0] =='int'){
                echo '|number|';
              }else if( $type[0]=='decimal'){
                echo '|float|';
              }else if( $type[0]=='tinyint'){
                echo '|number|';
              }else if( $type[0]=='enum'){
                echo '|in:'.explode(')',$type[1])[0].',<br>';
                continue;
              }
              if(isset($type[1]))
                echo "|max:".explode(')',$type[1])[0]."',";
            {/php}
        <br>
{/foreach}
];